package com.driving.single.frontend.recommend.controller;

import com.driving.single.common.entity.DrivingResult;
import com.driving.single.frontend.recommend.service.RecommendService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * [驾校/教练/陪练]推荐  控制层
 *
 * @author xsfno1
 * @version v1.0.0
 * @date 2020/2/21 21:01
 * @see com.driving.single.frontend.recommend.controller
 **/
@RestController
@RequestMapping("/frontend/recommend")
public class RecommendController {
    @Resource
    private RecommendService recommendService;

    /**
     * 获取[驾校]推荐列表
     *
     * @return {@link DrivingResult}
     */
    @GetMapping("schools ")
    public DrivingResult getSchoolRecommend() {
        return this.recommendService.getSchoolRecommendService();
    }
}
